import { createApp } from "vue";
import App from "@/App.vue";
import router from "./router/index";

import "virtual:svg-icons-register";

// 初始化css 重置css默认样式
import "normalize.css/normalize.css";
// 全局 css
import "@/styles/index.scss";

import "element-plus/theme-chalk/index.css";

import { createPinia } from "pinia";

const app = createApp(App);

// 权限指令
import permissionDirective from './directive/permission/index'

// app.config.globalProperties.$ELEMENT = {
//   size: "mini",
// };

// console.log("app", app);

app
    .use(router)
    .use(createPinia())
    .use(permissionDirective)
    .mount("#app");
